/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Model;

import java.util.Scanner;

/**
 *
 * @author Laura
 */
public class Player {
    /*
     * The attributes of the class Player
     * 1. name
     * 2. wins
     * 3. losses
     * 4. turn
     * 5. score
     */

    Scanner in = new Scanner(System.in);
    String ans;
    protected String name;
    //protected int wins;
    // protected int losses;
    protected boolean turn;
    protected int score;
    

    public Player(String str) {
        name = str;
        score = 0;
    }//player constructor

    public Player() {
        name = "COMP";
        score = 0;
    }//Constructor for computer player

    public int getScore() {
        return this.score;
    }

    public String getName() {
        return this.name;
    }

    public int roll(Die die) {
        int numberRolled = die.roll();//this will call the rollDie method the die object
        return numberRolled;//return the number rolled
    }//end method roll

    public boolean getTurn()/*return true if it IS the players go that the getTurn() method was called on, false otherwise*/ {
        if (this.turn) {
            return true;
        }
        return false;
    }//end method getTurn

    public void setTurn(boolean a) {
        this.turn = a;
    }//end method setTurn
    
    
}//End class Player

